@model Campus.Entities.Estudiante

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.Nombre)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.Nombre)
		@Html.ValidationMessageFor(model => model.Nombre)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.Apellido)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.Apellido)
		@Html.ValidationMessageFor(model => model.Apellido)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.DNI)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.DNI)
		@Html.ValidationMessageFor(model => model.DNI)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.FechaNacimiento)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.FechaNacimiento)
		@Html.ValidationMessageFor(model => model.FechaNacimiento)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.Foto)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.Foto)                
        <input type="file" name="fileFotoEstudiantes" value="Elija una foto" />
		@Html.ValidationMessageFor(model => model.Foto)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.Habilitado)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.Habilitado)
		@Html.ValidationMessageFor(model => model.Habilitado)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.FechaIngreso)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.FechaIngreso)
		@Html.ValidationMessageFor(model => model.FechaIngreso)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.Email)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.Email)
		@Html.ValidationMessageFor(model => model.Email)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
    ObraSocial
</div>
<div class="controls">
    @Html.DropDownListFor(model => model.ObraSocialId, ((IEnumerable<Campus.Entities.ObraSocial>)ViewBag.PossibleObraSocials).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Nombre), 
        Value = option.ObraSocialId.ToString(),
        Selected = (Model != null) && (option.ObraSocialId == Model.ObraSocialId)
    }), "Elegir...")
    @Html.ValidationMessageFor(model => model.ObraSocialId)
</div>
</div>
<div class="control-group">
	<div class="control-label">
    Escuela
</div>
<div class="controls">
    @Html.DropDownListFor(model => model.EscuelaId, ((IEnumerable<Campus.Entities.Escuela>)ViewBag.PossibleEscuelas).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Nombre), 
        Value = option.EscuelaId.ToString(),
        Selected = (Model != null) && (option.EscuelaId == Model.EscuelaId)
    }), "Elegir...")
    @Html.ValidationMessageFor(model => model.EscuelaId)
</div>
</div>
@*<div class="control-group">
	<div class="control-label">
    Documentacion
</div>
<div class="controls">
    @Html.DropDownListFor(model => model.DocumentacionId, ((IEnumerable<Campus.Entities.Documentacion>)ViewBag.PossibleDocumentacions).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.DocumentacionId.ToString(),
        Selected = (Model != null) && (option.DocumentacionId == Model.DocumentacionId)
    }), "Elegir...")
    @Html.ValidationMessageFor(model => model.DocumentacionId)
</div>
</div>*@
<div class="control-group">
	<div class="control-label">
    Responsable
</div>
<div class="controls">
    @Html.DropDownListFor(model => model.ResponsableId, ((IEnumerable<Campus.Entities.Responsable>)ViewBag.PossibleResponsables).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Apellido), 
        Value = option.ResponsableId.ToString(),
        Selected = (Model != null) && (option.ResponsableId == Model.ResponsableId)
    }), "Elegir...")
    @Html.ValidationMessageFor(model => model.ResponsableId)
</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.CuotaMensual)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.CuotaMensual)
		@Html.ValidationMessageFor(model => model.CuotaMensual)
	</div>
</div>

<div class="control-group">
	<div class="control-label">
	    @Html.LabelFor(model => model.CuotaAnual)
	</div>
	<div class="controls">
		@Html.EditorFor(model => model.CuotaAnual)
		@Html.ValidationMessageFor(model => model.CuotaAnual)
	</div>
</div>
